package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceContaCorrenteDAO;
import br.org.credfaz.sis.modelo.TceContaCorrente;

public class AtualizaTceContaCorrenteAction {

private List<TceContaCorrente> cc;
	
	@Action(value="atualizaCc", results= {
			@Result(name="ok", type="redirectAction", params= {"actionName", "atualizaCcredito"})
	})
	public String execute(){
		cc = new TceContaCorrenteDAO().lista();
		return "ok";
	}
	public List<TceContaCorrente> getTceContaCorrente(){
		return cc;
	}

}
